<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<script type="text/javascript" src="/oa/Public/js/common.js"></script>
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<link rel="stylesheet" type="text/css" href="/oa/Public/css/form.css" />
</head>
<body>
<div class="search">
<b><?php echo ($name); ?></b>
<div class="tools">
<input type="button" value="返回相册" onclick="location.href='/oa/index.php/Album/index'" class="button">&nbsp;</div>
</div>
<div class="list" >
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="album_view" onclick="show(<?php echo ($vo["id"]); ?>,<?php echo ($i); ?>)" id="<?php echo ($vo["id"]); ?>">
		<div class="image"><img src="<?php echo ($vo["path"]); ?>/small/<?php echo ($vo["new_name"]); ?>" /></div>
	</div><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
</body>
<script type="text/javascript">
$('img').error(function() {
	$(this).attr("src", "/oa/Public/images/pic-error.png");
});
var url = "/oa/index.php/Album/";
function show(id,p){
	window.open(url+"show?id="+<?php echo ($id); ?>+"#p="+p,'_blank','width='+(window.screen.availWidth-10)+',height='+(window.screen.availHeight-30)+ ',top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no, fullscreen=yes')

}
</script>
</html>